<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="module">
        //模块化开发
        // import { web, name, getWeb } from './index.js'
        // console.log(web)
        // console.log(name)
        // console.log(getWeb())
        //引入obj整体（1）写default
        //引入obj整体（2）写* as   （*as匹配任意字符）
        // import obj from './index.js'
        import * as obj from './index.js'
        console.log(obj.web)
        console.log(obj.name)
        console.log(obj.getWeb())

    </script>
</body>

</html>